<template>
  <j-select-biz-component
    :value="value"
    name="岗位"
    displayKey="name"
    :returnKeys="returnKeys"
    :listUrl="url.list"
    :columns="columns"
    queryParamText="岗位名称"
    :queryParamConfig="queryParamConfig"
    v-on="$listeners"
    v-bind="$attrs"
  />
</template>

<script>
  import JSelectBizComponent from './JSelectBizComponent'

  export default {
    name: 'JSelectPosition',
    components: { JSelectBizComponent },
  props: {
    value: {
        type: String,
        default:''
      },
     queryParamConfig: {
       type: Object,
       default: () => { }
     }
   },
    data() {
      return {
        returnKeys: ['id', 'id'],
        url: { list: '/hr/hrPosition/list' },
        columns: [
          { title: '岗位名称', dataIndex: 'name', align: 'center', width: '30%', widthRight: '70%' },
          { title: '岗位序列', dataIndex: 'sequenceId_dictText', align: 'center', width: '35%' },
          { title: '职级', dataIndex: 'postLevel_dictText', align: 'center', width: '25%' }
        ],
      }
  },
  }
</script>

<style lang="less" scoped></style>